package com.music.controller;

import com.music.common.BaseResult;
import com.music.service.CmMyHomePageService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/myhomepage")
@Api(description = "主页相关接口")
//@CrossOrigin
public class CmMyHomePageController {

    @Autowired
    CmMyHomePageService cmMyHomePageService;

    @RequestMapping(value = "MyHomePagefindAll",method = RequestMethod.GET)
    public BaseResult MyHomePagefindAll(){
        return cmMyHomePageService.MyHomePagefindAll();
    }
}
